import ajax from './ajax'

export const getPartner = params => {
  return ajax({
    url: '/AiPartnerCourese/MyPartner',
    method: 'POST',
    data: params
  })
}

export const addPartner = params => {
  return ajax({
    url: '/AiPartnerCourese/ManagePartner',
    method: 'POST',
    data: params
  })
}

export const saleGoods = params => {
  return ajax({
    url: '/AiPartnerCourese/SaleGoods',
    method: 'POST',
    data: params
  })
}

export const getSaleRecords = params => {
  return ajax({
    url: '/AiPartnerCourese/GetTransactionDetailByPartnerId',
    data: params
  })
}